/// <reference path="../../Resources/js/jquery/jquery.debug.js" />

Type.registerNamespace("BM");

// InputsContainerValueHandler object

BM.InputsContainerValueHandler = function(leafItem) {
    BM.InputsContainerValueHandler.initializeBase(this, [leafItem]);
}

BM.InputsContainerValueHandler.prototype = {

    getInputsContainer: function() {        
        /// <returns domElement="true" >
        /// returns the HTML element in which the inputs is placed
        /// this element is generated by the ASP.NET control            
        /// </returns>
        if (this.inputsContainer == null) {
            this.inputsContainer = $(this.getLeafNode()).find("." + BM.ValueHandler.Input)[0];
        }
        return this.inputsContainer;
    },
    
    getInputs: function() {
        if (this.inputs == null) {
            this.inputs = $(this.getInputsContainer()).find(this.getInputsPath());
        }
        return this.inputs;
    },
    
    getInputsPath: function() {
        /// <returns type="string" >
        /// returns the jQuery path to all inputs in the container
        /// </returns>
    }                  
}

BM.InputsContainerValueHandler.registerClass("BM.InputsContainerValueHandler", BM.ValueHandler);